var express = require('express');
var router = express.Router();
var dataCtrl = require('../controllers/comments-controllers');

router.post('/data',dataCtrl.create);   
router.post('/data/:id',dataCtrl.update);//没有 ：就是字符串。加了 ：就是参数传递。postmen操作中不加
router.delete('/data/:id',dataCtrl.remove);
router.post('/list',dataCtrl.list);
router.post('/listtoo/:id',dataCtrl.listtoo);

module.exports = router;